home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$ObjectAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.8 KB  |  45 lines

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.text.AttributeSet;
  4. import javax.swing.text.DefaultStyledDocument;
  5. import javax.swing.text.MutableAttributeSet;
  6. import javax.swing.text.html.HTML.Attribute;
  7. import javax.swing.text.html.HTML.Tag;
  8.  
  9. class HTMLDocument$HTMLReader$ObjectAction extends HTMLDocument.HTMLReader.SpecialAction {
  10.    // $FF: synthetic field
  11.    private final HTMLDocument.HTMLReader this$1;
  12.  
  13.    HTMLDocument$HTMLReader$ObjectAction(HTMLDocument.HTMLReader var1) {
  14.       super(var1);
  15.       this.this$1 = var1;
  16.    }
  17.  
  18.    void addParameter(AttributeSet var1) {
  19.       String var2 = (String)var1.getAttribute(Attribute.NAME);
  20.       String var3 = (String)var1.getAttribute(Attribute.VALUE);
  21.       if (var2 != null && var3 != null) {
  22.          DefaultStyledDocument.ElementSpec var4 = (DefaultStyledDocument.ElementSpec)this.this$1.parseBuffer.lastElement();
  23.          MutableAttributeSet var5 = (MutableAttributeSet)var4.getAttributes();
  24.          var5.addAttribute(var2, var3);
  25.       }
  26.  
  27.    }
  28.  
  29.    public void end(HTML.Tag var1) {
  30.       if (var1 != Tag.PARAM) {
  31.          super.end(var1);
  32.       }
  33.  
  34.    }
  35.  
  36.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  37.       if (var1 == Tag.PARAM) {
  38.          this.addParameter(var2);
  39.       } else {
  40.          super.start(var1, var2);
  41.       }
  42.  
  43.    }
  44. }
  45.